//
//  APIManager+requestData.h
//  WithYou
//
//  Created by 牛清旭 on 2020/5/6.
//  Copyright © 2020 郭子一. All rights reserved.
//

#import "APIManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface APIManager (requestData)

-(NSURLSessionDataTask *)reqestDataWithDict:(NSDictionary *)dict sucess:(void(^)(NSInteger code, NSDictionary* dict))sucess failure:(void(^)(NSInteger code, NSError *error))failure;

- (void)createOrderWithParams:(NSDictionary *)dict success:(void(^)(NSInteger code, NSDictionary *dict))success failure:(void(^)(NSInteger code, NSError *error))failure;

- (void)uploadProductionWithParams:(NSDictionary *)dict success:(void(^)(NSInteger code, NSDictionary *dict))success failure:(void(^)(NSInteger code, NSError *error))failure isVideo:(BOOL)isvideo;

- (void)searchWithParams:(NSDictionary *)dict url:(NSString *)url success:(void(^)(NSInteger code, NSDictionary *dict))success failure:(void(^)(NSInteger code, NSError *error))failure isVideo:(BOOL)isvideo;
@end

NS_ASSUME_NONNULL_END
